public class OuterClass {
    public int date1 = 10;
    private int date2 = 1;
    public static final int date3 = 20;
    class InnerClass{
        public int date1 = 1;
        public int date4 = 4;
        private int date5 = 5;
        public static final int date6 = 60;
        public void testInner(){
            System.out.println("testInner执行了");
            System.out.println(date1);//访问的是内部类的date1
            System.out.println(OuterClass.this.date1);//访问外部类的date1
            System.out.println(date2);
            System.out.println(date3);
            System.out.println(date4);
            System.out.println(date5);
            System.out.println(date6);
        }
    }
    public void test(){
        System.out.println("test执行了");

    }
   /* public static void testHe(){
        System.out.println(date6);
    }*/
    //不能访问外部成员

    //局部内部类
    public void testHe(){
        class Test{

        }
    }
}
